package com.tools.app.service.impl;

import com.hm.base.android.mob.AMApplication;
import com.hm.base.android.mob.service.ActionException;
import com.hm.base.android.mob.service.ServiceAnnotation;
import com.hm.base.android.mob.service.impl.HttpMobService;
import com.hm.base.android.mob.service.impl.LocalMobService;
import com.tools.app.AppConstant;
import com.tools.app.service.IAppLocalService;

/**
 * Created by ChenLi on 2017/12/13.
 */

public class AppLocalService extends LocalMobService implements IAppLocalService {

    private AppHttpService httpService;

    public AppLocalService(HttpMobService chainService, AMApplication mApplication) {
        super(chainService, mApplication);
        httpService = (AppHttpService) chainService;
    }

    /**
     * GP推广渠道追踪上报
     *
     * @param referrer
     * @throws ActionException
     */
    @ServiceAnnotation(serviceMark = AppConstant.SERVICE_MARK_SUBMITREFERRER)
    @Override
    public int submitReferrer(String referrer, long time) throws ActionException {
        return httpService.submitReferrer(referrer, time);
    }

}
